<%@page import="crm.control.ScheduleControl"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>删除日程</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  
  <body>
  	<%
  		request.setCharacterEncoding("utf-8");
  		int id = Integer.parseInt(request.getParameter("id"));
  		if(ScheduleControl.deleteSchedule(id)){
   	 %>
		<script type="text/javascript">
alert("删除成功");
window.location.href = "schedule.jsp";
</script>
		<%}else{ %>
		<script type="text/javascript">
alert("删除失败！");
window.location.href = "schedule.jsp";
</script>
   	 <%}%>
  </body>
</html>
